﻿<UserControl x:Class="MediaOwl.LastFm.Views.LastFmView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
             xmlns:ctrl="clr-namespace:MediaOwl.Common.ControlTemplates;assembly=MediaOwl.Common"
             mc:Ignorable="d"
             d:DesignHeight="399"
             d:DesignWidth="568">
    <ctrl:WorkspaceControl BusyContext="{Binding CurrentBusyViewModel}"
                           DialogContext="{Binding ActiveDialog}">
        <Border CornerRadius="3"
                BorderThickness="2">
            <Border.BorderBrush>
                <LinearGradientBrush EndPoint="1,1"
                                     StartPoint="0,0">
                    <GradientStop Color="#FFC2DF00"
                                  Offset="0.15" />
                    <GradientStop Color="Transparent"
                                  Offset="1" />
                </LinearGradientBrush>
            </Border.BorderBrush>
            <Border.Background>
                <LinearGradientBrush EndPoint="1,1"
                                     StartPoint="0,0">
                    <GradientStop Color="#7FC2DF00"
                                  Offset="0.15" />
                    <GradientStop Color="Transparent"
                                  Offset="1" />
                </LinearGradientBrush>
            </Border.Background>
            <toolkit:DockPanel Margin="15">
                <Grid toolkit:DockPanel.Dock="Top"
                      Height="50"
                      Margin="0,0,0,15">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <Rectangle Fill="{Binding Icon}"
                               Width="50"
                               Height="50"
                               Stretch="Uniform"
                               Margin="0,0,10,0" />
                    <TextBlock x:Name="DisplayName"
                               TextWrapping="Wrap"
                               Style="{StaticResource Heading1}"
                               d:LayoutOverrides="Height"
                               Grid.Column="1"
                               VerticalAlignment="Center" />
                    <TextBlock TextWrapping="Wrap"
                               Text="powered by"
                               VerticalAlignment="Center"
                               HorizontalAlignment="Right"
                               Margin="0,0,115,0"
                               Grid.Column="2" />
                    <Image Width="100"
                           Source="/MediaOwl.LastFm;component/Resources/Images/LastFmLogo.png"
                           d:LayoutOverrides="Height"
                           HorizontalAlignment="Right"
                           VerticalAlignment="Center"
                           Grid.Column="2" />
                </Grid>

                <ListBox x:Name="Items"
                         Margin="0,0,15,0"
                         Width="250"
                         ItemTemplate="{StaticResource WorkitemItemTemplate}" />
                <toolkit:TransitioningContentControl x:Name="ActiveItem"
                                                     HorizontalContentAlignment="Stretch"
                                                     VerticalContentAlignment="Stretch"
                                                     Transition="UpTransition" />

            </toolkit:DockPanel>
        </Border>
    </ctrl:WorkspaceControl>
</UserControl>
